#include "TempUserTable.h"
#include "Ext/FilterQuery.h"
#include "..\Utility\SqlFilter.h"

void TCServer::Store::TempUserTable::create()
{
    throw std::logic_error("" __FILE__ ", TCServer::Store::TempUserTable::create() is not implemented.");
    FilterQuery q(R"(

			)");
    return q.exec();

}

void TCServer::Store::TempUserTable::insert(quint64 userid)
{
    FilterQuery q;
    q.prepare("INSERT INTO `tempUser` (userId)"
        "VALUES(?);");
    q.addBindValue(userid);
    return q.exec();
}

void TCServer::Store::TempUserTable::remove(quint64 userid)
{
    FilterQuery q;
    q.prepare("DELETE FROM `tempUser` WHERE `userId` = ?;");
    q.addBindValue(userid);
    return q.exec();
}
